home *** CD-ROM | disk | FTP | other *** search
/ Champak 106 / Vol 106.iso / games / steppenw.swf / scripts / DefineButton2_1366 / BUTTONCONDACTION on(release).as
Encoding:
Text File  |  2010-04-12  |  2.2 KB  |  62 lines

  1. on(release){
  2.    if(eval("/Variables:EtatActif") eq "Tab2" or eval("/Variables:EtatActif") eq "Tab2Grimpe" or eval("/Variables:EtatActif") eq "Tab2Grimpe2")
  3.    {
  4.       set("/Variables:PositionGrue",getProperty("_root.Grue", _currentframe));
  5.    }
  6.    else
  7.    {
  8.       set("/Variables:PositionGrue",1);
  9.    }
  10.    set("/Variables:FramePirate",getProperty("_root.Pirate", _currentframe));
  11.    set("/Variables:FramePirateA",getProperty("_root.PirateA", _currentframe));
  12.    set("/Variables:FramePirateB",getProperty("_root.PirateB", _currentframe));
  13.    set("/Variables:FrameUlla",getProperty("_root.Ulla", _currentframe));
  14.    if(eval("/Variables:FramePirate") == 1)
  15.    {
  16.       set("/Variables:FramePirate",0);
  17.    }
  18.    if(eval("/Variables:FramePirateA") == 1)
  19.    {
  20.       set("/Variables:FramePirateA",0);
  21.    }
  22.    if(eval("/Variables:FramePirateB") == 1)
  23.    {
  24.       set("/Variables:FramePirateB",0);
  25.    }
  26.    if(eval("/Variables:FrameUlla") == 1)
  27.    {
  28.       set("/Variables:FrameUlla",0);
  29.    }
  30.    set("/Variables:InventaireSave","/Variables:InventaireSaveString"());
  31.    set("/Variables:MegSetting",new ┬º/Variables:Setting┬º());
  32.    set("/Variables:MegSave","/Variables:MegSaveString"());
  33.    if(eval("/Variables:EtatActif") eq "Tab2Grimpe")
  34.    {
  35.       set("/Variables:MegGrimpeTab2",getProperty("_root.MegGrimpe", _currentframe));
  36.    }
  37.    if(eval("/Variables:DrapEnleve") == true)
  38.    {
  39.       set("/Variables:SecondeSave",eval("/ControlBombe:SecondeEcoule"));
  40.    }
  41.    if(eval("/Variables:EtatActif") eq "Tab1")
  42.    {
  43.       set("/Variables:PositionCapitaine",getProperty("_root.Capitaine", _currentframe));
  44.    }
  45.    "/Variables:VariablesSaveString"();
  46.    set("/Save:Fichier",eval("/Variables:NomsVariablesSave") + "@" + eval("/Variables:ValeursVariablesSave") + "@" + eval("/Variables:TypeVariablesSave") + "@" + eval("/Variables:InventaireSave") + "@" + eval("/Variables:MegSave"));
  47.    getURL("FSCommand:save",eval("/Save:Fichier"));
  48.    set("/:test",eval("/Save:Fichier"));
  49.    tellTarget("_root")
  50.    {
  51.       gotoAndStop(eval("/Variables:EtatActif"));
  52.    }
  53.    tellTarget("_root.GameSaved")
  54.    {
  55.       play();
  56.    }
  57.    tellTarget("../")
  58.    {
  59.       gotoAndStop(1);
  60.    }
  61. }
  62.